home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 43.zip / ANC 15.adf / 1.Doc < prev    next >
Text File  |  1987-01-01  |  7KB  |  151 lines

  1. ?
  2.  a?                         - Amiga special commands
  3. #b?                         - breakpoint commands
  4.  c [COUNT]                  - display current context of COUNT lines
  5.  d?                         - display commands
  6.  e [EXPR]                   - evaluate a C expression
  7. #f?                         - frame up and down commands
  8. #g [ADDR [;COMMAND] ]       - execute program
  9. #G [ADDR [;COMMAND] ]       - execute program without breakpoints
  10.  lp                         - (re)load program file
  11.  m?                         - memory commands
  12.  p?                         - formatted output
  13.  q                          - quit
  14.  r [REG = VAL]              - display or modify the registers
  15. #s?                         - single step
  16.  u RANGE                    - unassemble the program
  17.  U RANGE                    - unassemble without symbols
  18.  w                          - toggle to other window
  19.  x NAME = MACRO             - create a macro
  20.  X NAME                     - display a macro
  21.  z                          - toggle source/assembly mode
  22.  = EXPR                     - display the value of
  23.  /STRING                    - find string in current file
  24.  < FILENAME                 - redirect input from a file
  25.  > FILENAME                 - copy all ouput to a file
  26.  >> FILENAME                - log commands only to a file
  27.  & [CNT]                    - delays till return or till CNT ticks
  28. a?
  29.  acc [out,text,back,prompt] - show/set the command window colors
  30.  acd [text,back]            - show/set the data window colors
  31.  acs [text,back,high,back]  - show/set the source window colors
  32.  add                        - display device list
  33.  adi                        - display interrupt list
  34.  adl                        - display library list
  35.  adp                        - display port list
  36.  adr                        - display resource list
  37.  ae                         - toggle command echo flag
  38.  am                         - display memory usage
  39.  ax                         - switch between main and alternate .dbg file
  40. b?
  41.  bc ADDR                    - clear a specific breakpoint in table
  42.  bC                         - clear all breakpoints in table
  43.  bd                         - display breakpoints in table
  44.  be EXPR                    - set expression breakpoint
  45.  bm ADDR(!=|==)[VAL]        - set memory change breakpoint
  46.  br [ADDR]                  - reset breakpoint counters in table
  47. #bs ADDR [;COND][;COMMAND]  - set or modify a breakpoint in table
  48.  bt                         - toggle call trace
  49.  bT                         - toggle source line trace
  50. d?
  51.  da                         - display local addresses
  52.  dc                         - display code addresses
  53.  db RANGE                   - display memory as bytes
  54.  dd                         - display data addresses
  55.  df [FILENAME,]RANGE        - display file lines
  56.  dg                         - display the value of all globals
  57.  dl RANGE                   - display memory as long words
  58. #ds                         - display stack backtrace
  59. #dS                         - display stack with autos
  60.  dw RANGE                   - display memory as words
  61. f?
  62. #fu                         - set frame to next caller up
  63. #fd                         - set frame to next caller down
  64. m?
  65.  mb ADDR VAL1 VAL2 ...      - modify memory as bytes
  66.  mc RANGE = ADDR            - compare memory
  67.  mf RANGE = VAL             - fill memory with value
  68.  ml ADDR VAL1 VAL2 ...      - modify memory as long words
  69.  mm RANGE = ADDR            - move memory
  70.  ms RANGE = VAL1 VAL2 ...   - search memory for value
  71.  mw ADDR VAL1 VAL2 ...      - modify memory as words
  72. p?
  73.  p [@FORMAT] [RANGE][,NEXT]  - formatted output
  74.    where FORMAT is sequence of [COUNT][INDIR][COUNT]DESC
  75.          COUNT  is a decimal number (defaults to 1)
  76.          INDIR  is '*'      - short indirect pointer
  77.                 or '#'      - long indirect pointer
  78.          DESC   is:
  79.                 d (D)       - 2-byte (4-byte) decimal
  80.                 o (O)       - 2-byte (4-byte) octal
  81.                 u (U)       - 2-byte (4-byte) unsigned decimal
  82.                 x (X)       - 2-byte (4-byte) hexadecimal
  83.                 f (F)       - single (double) floating point
  84.                 b[xdo]      - byte in hex or (hex, decimal, or octal)
  85.                 c (C)       - character with (without) translation
  86.                 s (S)       - string with (without) translation
  87.                 p (P)       - short (long) pointer
  88.                 n (N)       - output a newline
  89.                 r (R)       - print a name
  90.                 t (T)       - output a tab
  91.                 "STRING"    - output STRING
  92.                 .           - display floats to COUNT significance
  93.                 + (-)       - advance (reduce) address COUNT bytes
  94.                 ^           - reduce address by size of last item
  95.                 a (A)       - set print address to follow short (long)
  96.                               pointer chain
  97. s?
  98. #s [;COMMAND]               - single step the program # times
  99. #S [;COMMAND]               - single step without display
  100. #t [;COMMAND]               - single step #times stepping over calls
  101. #T [;COMMAND]               - same as 't' but don't display until last
  102.  
  103. Ctrl-A  DSP_INIT
  104. Ctrl-B  DSP_REDISPLAY
  105. Ctrl-D  DSP_DOWN     (down arrow key)    Get next command from history.
  106. Ctrl-G  DSP_LEFT     (left arrow key)    Move cursor left one place.
  107. Ctrl-H               (back space key)    Remove character to left of cursor.
  108. Ctrl-J               (return key)        Execute command on command line.
  109. Ctrl-K  DSP_UP       (up arrow key)      Get previous command form history.
  110. Ctrl-L  DSP_RIGHT    (right arrow key)   Move cursor right one place.
  111. Ctrl-M               (return key)        Execute command on command line.
  112. Ctrl-N  DSP_ALTUP    (Alt-up arrow)      Scroll data window contents down.
  113. Ctrl-O  DSP_ALTDOWN  (Alt-down arrow)    Scroll data window contests up.
  114. Ctrl-P  DSP_SHALTUP    (Shift-Alt-up arrow)   Scroll command window up.
  115. Ctrl-R  DSP_SHALTDOWN  (Shift-Alt-down arrow) Scroll command window down.
  116. Ctrl-T  DSP_SHUP     (Shift-up arrow)    Scroll source window contents down.
  117. Ctrl-U  DSP_SHDOWN   (Shift-down arrow)  Scroll source window contents up.
  118. Ctrl-V  DSP_SHLEFT   (Shift-left arrow)
  119. Ctrl-W  DSP_SHRIGHT  (Shift-right arrow)
  120. Ctrl-Y               (F10 key)           Swap sdb window with program output.
  121.  
  122. Amiga-arrow_key         Move pointer one pixel in direction of arrow.
  123. Amiga-Shift-arrow_key   Move pointer many pixels in direction of arrow.
  124.  
  125. Shift-left arrow        Move cursor to beginning of command line.
  126. Shift-right arrow       Move cursor to end of command line.
  127.  
  128. There are several options which can affect the debugger display.
  129.  
  130.     -ssT,B,HT,HB controls the source display.  All four numbers
  131.                  must be present and determine (in order):
  132.                  text, back ground, highlighted text, highlighted background
  133.  
  134.     -csO,T,B,P   controls the command area display as follows:
  135.  
  136.                  outline, text, background, prompt
  137.  
  138.     -dsT,B       controls the data area display as follows:
  139.  
  140.                  text, back ground
  141.  
  142.     -mFILE       forces redirection to an input file
  143.  
  144. Options may be made somewhat permanent by setting the environment variable
  145. SDBOPT to the appropriate values.  Try:
  146.  
  147.     set "SDBOPT=cs1,3,2,0  -cd3,2"
  148.  
  149. FILE.mac used to automatically save and load macros.
  150.  
  151.